<template>
  <div class="markdown-index br10 mgr20">
    <MdEditor v-model="text" />
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { MdEditor } from 'md-editor-v3'
import 'md-editor-v3/lib/style.css'

const text = ref('Hello Editor!')
</script>

<style scoped>
.markdown-index {
  background-color: #fff;
  height: 100%;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}
</style>
